package GameMain.View.ToolBar
{
	import Engine.Module.ModuleBase;
	
	import GameMain.Game;
	import GameMain.Macro.Macro;
	
	import flash.display.Sprite;
	
	public class ToolBar extends ModuleBase
	{
		public function ToolBar(p_content:Sprite=null)
		{
			super(p_content);
			this.y = 545;this.x = 482;
			Game.ControlMgr.getButton(this._content["JIAN_JUAN"]);
			Game.ControlMgr.getButton(this._content["SHANG_CHEN"]);
			Game.ControlMgr.getButton(this._content["REN_WU"]);
			Game.ControlMgr.getButton(this._content["BEI_BAO"]).setOnClickFun(onClickPlayerBagBtn);
			Game.ControlMgr.getButton(this._content["HAO_YOU"]);
			Game.ControlMgr.getButton(this._content["YOU_JIAN"]);
			Game.ControlMgr.getButton(this._content["XI_TONG"]);
			Game.ControlMgr.getButton(this._content["QI_TA"]);
			Game.ControlMgr.getButton(this._content["FAN_HUI"]).setOnClickFun(onClickBackBtn);
		}
		
		private function onClickBackBtn():void
		{
			Game.ModuleMgr.showBackWND();
		}
		
		private function onClickPlayerBagBtn():void
		{
			Game.ModuleMgr.showModule(Macro.MODULE_PLAYER_BAG);
		}
	}
}